package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.dating.dto.DatingDtoPage;
import com.zhentao.service.ApSocialCircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zpi/wx/dating")
public class DatingController {

    @Autowired
    private ApSocialCircleService datingService;

    /**
     * 交友圈列表
     * @param dto
     * @return
     */
    @PostMapping("/index/dating/list")
    public ResponseResult indexDatingList(@RequestBody DatingDtoPage dto) {
        return datingService.indexDatingList(dto);
    }
}
